package com.wencai.bean;

/**
 * @author wangpan
 * @date 2023/4/17
 */
public class DateIncrement implements Comparable<DateIncrement> {
    private String date;
    private Double increment;

    public DateIncrement(String date, Double increment) {
        this.date = date;
        this.increment = increment;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Double getIncrement() {
        return increment;
    }

    public void setIncrement(Double increment) {
        this.increment = increment;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("DateIncrement{");
        sb.append("date='").append(date).append('\'');
        sb.append(", increment=").append(increment);
        sb.append('}');
        return sb.toString();
    }

    @Override
    public int compareTo(DateIncrement o) {
        return date.compareTo(o.date);
    }
}
